<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
				xmlns:c="http://java.sun.com/jsp/jstl/core"
				template="/WEB-INF/layouts/standard.xhtml">
<ui:define name="notes">
	<p> Created by Andrea Nagy.<br></br>	nagan@digitus.itk.ppke.hu</p>
</ui:define>
<ui:define name="content">
<div class="span-5">
	<p> </p>
	
</div>
<div class="span-10 append-2 last">
	<c:if test="${not empty param.login_error}">
		<div class="error">
			Your login attempt was not successful, try again.<br />
			Reason: #{sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}
		</div>
	</c:if>
	<form name="f" action="#{request.contextPath}/spring/loginProcess" method="post">
		<fieldset>
			<legend>Login Information</legend>
				<p>
					User:
					<br />
					<c:if test="${not empty param.login_error}">
						<c:set var="username" value="#{sessionScope.SPRING_SECURITY_LAST_USERNAME}"/>
					</c:if>
					<input type="text" name="j_username" value="#{username}"/>
				</p>
				<p>
					Password:
					<br />
					<input type="password" name="j_password" />				
				</p>
				<p>
					<input type="checkbox" name="_spring_security_remember_me"/> 
					Don't ask for my password for two weeks:
				</p>
				<p>
					<input name="submit" type="submit" value="Login" />
				</p>
		</fieldset>
	</form>
</div>
</ui:define>
</ui:composition>